import http from '../../../base/api/public'
import querystring from 'querystring'

let sysConfig = require('@/../config/sysConfig')
// let apiUrl = sysConfig.xcApiUrlPre;
let apiUrl = 'api';

//登录
export function login(params) {
  //是否登录
  return http.requestPost(apiUrl + '/login/login', params);
}

//校验是否登录
export function islogin() {
  //是否登录
  return http.requestQuickGet(apiUrl + '/login/isLogin');
}

//登录
export function logout() {
  //退出登录
  return http.requestQuickGet(apiUrl + '/login/logout');
}
